package com.coship.vas.dapg.util;

import java.net.URL;

import com.coship.vasadapter.service.AssetManage;
import com.coship.vasadapter.service.AssetManageServiceLocator;

/**
 * 
 * @作者 905613 陈开源 深圳市同洲电子股份有限公司(增值运营产品线)
 *
 */
public class AgentAdapterUtil {

	private static AssetManage service = null;
	
	/**
	 * 获取服务接口
	 * @return
	 */
	public static AssetManage getDefaultInstance()
	{
		if(service == null)
		{
			try {
				service = (new AssetManageServiceLocator()).getAssetManagePort(new URL(""));
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		
		return service;
	}
	
}
